import java.util.Scanner;

public class Demo3_8_7 {
    public static void main(String[] args) {

        System.out.println("1.客户信息管理");
        System.out.println("2.购物结算");
        System.out.println("3.真情回馈");
        System.out.println("4.注销");
        System.out.println("请选择输入数字：");
        Scanner input = new Scanner(System.in);
        int chosen = input.nextInt();
        while (chosen > 4) {
            System.out.println("输入错误，请重新输入数字：");
            chosen = input.nextInt();
        }
        switch (chosen) {
            case 1: {
                System.out.println("选择客户信息管理");
            }
            break;
            case 2: {
                System.out.println("选择购物结算");
            }
            break;
            case 3: {
                System.out.println("选择真情回馈");
            }
            break;
            case 4: {
                System.out.println("注销");
            }
            break;
        }
        System.out.println("程序结束");

    }

}

